package jeecg.business.service.impl.site;

import java.util.List;

import jeecg.business.entity.site.SimpleSiteEntity;
import jeecg.business.service.site.SimpleSiteServiceI;

import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("simpleSiteService")
@Transactional
public class SimpleSiteServiceImpl extends CommonServiceImpl implements SimpleSiteServiceI {
	public SimpleSiteEntity query(String zdbs){
		String hql = " from SimpleSiteEntity where zdbs = '"+zdbs+"'";
		List<SimpleSiteEntity> list = findByQueryString(hql);
		if(list != null && list.size()>0) return list.get(0);
		return null;
	}
}